package com.weixin.paleituo.adapter;

import android.content.Context;
import android.widget.ImageView;

import com.weixin.paleituo.R;
import com.weixin.paleituo.base.BaseRecycleAdapter;
import com.weixin.paleituo.help.RecycleViewHolder;
import com.weixin.paleituo.util.UIUtils;

import java.util.List;

/**
 * Author yichao
 * Time  2018/3/24 15:32
 * Dest  ${TODO}
 */

public class GoodsDetailsRecycleAdapter extends BaseRecycleAdapter<String> {
    public GoodsDetailsRecycleAdapter(Context context, List<String> datas) {
        super(context, datas, R.layout.item_goodes_details);
    }

    @Override
    protected void setData(RecycleViewHolder holder, String s, int position) {
        ImageView itemView = holder.getItemView(R.id.iv_item_goods_details);
       //Glide.with(mContext).load(s).into(itemView);
        UIUtils.loadImageView(mContext,s,itemView);

    }
}
